package com.shamrock.cms.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;



@Controller
public class UserController {
		Logger logger = Logger.getLogger(getClass());
	  @RequestMapping(value="/loginPage")  
	  public String login(Model model,@RequestParam(value = "error", required = false) String error) {  
	      logger.info("--->Login start<----");  
		  if (error != null) {  
	            model.addAttribute("error", "用户名或密码错误");  
	        }  
	       
	        return "login";  
	    }
}
